#include "KeyHandler.h"

KeyHandler::KeyHandler() {
}

KeyHandler::~KeyHandler() {
}

bool KeyHandler::OnEvent(const SEvent& event) {
	if(event.EventType == EET_KEY_INPUT_EVENT) {
		if(!event.KeyInput.PressedDown) {
			std::cout<<"Key has been pressed!"<<std::endl;
			if(event.KeyInput.Key == irr::KEY_KEY_1) {
				std::cout<<"It was Key 1, you rube. >:("<<std::endl;
				return true;
			}
			//handleInput(event);
		}
	}
	return false;
}